package com.wuhao.lib_common.download;

/**
 * Created by zhangjianhao on 2018/8/23.
 *
 * @author zhangjianhao
 */

public class DownloadBean {
    private long currentOffset, totalLength;
    private String speed;
    private String progress;

    public DownloadBean(long currentOffset, long totalLength) {
        this.currentOffset = currentOffset;
        this.totalLength = totalLength;
    }

    public DownloadBean(long currentOffset, String speed) {
        this.currentOffset = currentOffset;
        this.speed = speed;
    }

    public String getProgress() {
        return progress;
    }

    public void setProgress(String progress) {
        this.progress = progress;
    }

    public long getCurrentOffset() {
        return currentOffset;
    }

    public void setCurrentOffset(long currentOffset) {
        this.currentOffset = currentOffset;
    }

    public long getTotalLength() {
        return totalLength;
    }

    public void setTotalLength(long totalLength) {
        this.totalLength = totalLength;
    }

    public void setSpeed(String speed) {
        this.speed = speed;
    }

    public String getSpeed() {
        return speed == null ? "" : speed;
    }
}
